package com.sh.sample.config;

import com.sh.common.config.AbstractConfigData;
import com.sh.common.config.annotation.ConfigData;
import com.sh.common.config.annotation.ConfigField;
import com.sh.common.config.source.JSONSource;

/**
 * ItemConfig
 *
 * @author 张力
 * @date 2025/3/25 16:25
 */


@ConfigData(file="item", keys={"id","name"})
public class ItemConfig extends AbstractConfigData {

    @ConfigField
    private int id;

    @ConfigField
    private String name;

    @ConfigField
    private int[] attrs;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int[] getAttrs() {
        return attrs;
    }

    public void setAttrs(int[] attrs) {
        this.attrs = attrs;
    }
}
